<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>开始使用CKEditor</title>
<link rel="stylesheet" href="${pageContext.request.contextPath }/resources/layui/css/layui.css">
<script src="${pageContext.request.contextPath }/resources/layui/layui.js"></script>
<script src="${pageContext.request.contextPath }/resources/ckeditor/ckeditor.js"></script>
<script src="${pageContext.request.contextPath }/resources/ckeditor/zh-cn.js"></script>
</head>
<body>
<form class="layui-form" action="${pageContext.request.contextPath }/SaveContentServlet" method="post">
<textarea id="content" name="content"></textarea>
<br/>
<button class="layui-btn" type="submit">提交</button>
</form>
<script>
ClassicEditor.create(document.querySelector('#content'),{
	language : 'zh-cn',
});
</script>
</body>
</html>